package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.MaterialReplaceDao;
import com.liuxinlong.modules.entity.MaterialReplace;
import com.liuxinlong.modules.mapper.MaterialReplaceMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 物料替换dao实现
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年3月21日
 */
@Service
public class MaterialReplaceDaoImpl extends ServiceImpl<MaterialReplaceMapper, MaterialReplace> implements MaterialReplaceDao {
    @Override
    public List<MaterialReplace> pageReplaceList(Map<String, Object> queryParam) {
        return baseMapper.pageReplaceList(queryParam);
    }

    @Override
    public int getReplaceCount(Map<String, Object> queryParam) {
        return baseMapper.getReplaceCount(queryParam);
    }

    @Override
    public MaterialReplace selectOneByParam(String targetMaterial, String replaceMaterial, String region) {
        return baseMapper.selectOneByParam(targetMaterial,replaceMaterial,region);
    }
}
